package com.enation.app.javashop.api.client;

import com.enation.app.javashop.model.distribution.dto.DistributionSellerBillDTO;
import com.enation.app.javashop.service.distribution.DistributionSellerBillManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

/**
 * @author fk
 * @version v2.0
 * @Description: 分销结算单接口
 * @date 2018/9/21 9:50
 * @since v7.0.0
 */
@RestController
@RequestMapping("/client/distribution")
@Validated
@ApiIgnore
public class DistributionSellerBillClientController {

    @Autowired
    private DistributionSellerBillManager distributionSellerBillManager;

    @PostMapping("/seller/count")
    public List<DistributionSellerBillDTO> countSeller(@RequestParam("start_time") Integer startTime, @RequestParam("end_time")Integer endTime) {
        return distributionSellerBillManager.countSeller(startTime,endTime);
    }



}
